# Contributor: Robert Sacks <robert@sacks.email>
# Maintainer: Robert Sacks <robert@sacks.email>
pkgname=py3-recommonmark
_pyname=recommonmark
pkgver=0.7.1
pkgrel=2
pkgdesc="A docutils-compatibility bridge to CommonMark"
url="https://github.com/readthedocs/recommonmark"
arch="noarch"
license="MIT"
depends="python3 py3-commonmark>=0.8.1 py3-docutils py3-sphinx"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$_pyname-$pkgver.tar.gz::https://github.com/readthedocs/$_pyname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	rm -f tests/test_sphinx.py
	pytest-3
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
3e03440d606ea6247df9bd122a6fa2dccf01c0c315eeace046d5cd336657e26bbd1c6b7ad4ba46f344215905128b72508c036cc57bbe4b5e27df50c55371fe01  recommonmark-0.7.1.tar.gz
"
